'''
验证操作的常用方法：
(1)driver.title			获取title
(2)driver.find_element(By.ID,’value).text			获取元素的文本
(3)driver.find_element(By.ID,’value).get_attribute(name)	获取元素的属性
(4)driver.current_url		获取url

'''
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from time import sleep
from options import options

driver = webdriver.Chrome(options=options)
driver.get(r'https://www.baidu.com/')
sleep(1)

print(driver.title)
print(driver.current_url)
